package rpg.console;

public class Command {
	
	public String name;
	public String help;
	int minParam;
	String[] params;
	
	public Command(String name, String help, int minParam) {
		this.name = name;
		this.help = help;
		this.minParam = minParam;		
	}
	
	public boolean canRun(String[] params) {
		if(params.length< minParam) {
			System.out.println("Hülye vagy, több paraméter kell!");
			System.out.println(name + ": " + help);
			return false;
		}
		runCommand(params);
		return true;
	}
	
	public void runCommand(String[] params) {
		
	}

}
